package
{
	import flash.display.*;
	import flash.text.*;
	import flash.utils.*;
	
	public class NodeHandler extends Sprite {
		public var objLoader:Loader;
		public var objData:Object;
		
		public function NodeHandler():void {
			
			var node = new WBSnode(result[0]);
			
			this.objData = objData;
			
		}
		
		//revision test
		private function handleAddNodes():void {
			for (var i:Number = 0; i < ill; i++){
				var myNode = new Node();
				myNode.label = result[i].title;
				get
				/* if (objIn.parent_id == i){
					target.parent.objIn.name.addChild(result[i]);
				}else{
					
				} */
			} 						
		}
		
		private function handleRemotingError( fault:Object ):void {
			trace("Remoting error");
		}
		
		private function deserialize(result:Object){
			var rows:Number = result.serverInfo.totalCount//how many rows are in our recordset?
			var resultArray:Array = [];
			var columnNames:Array = String(result.serverInfo.columnNames).split(",");
			var data:Array = String(result.serverInfo.initialData).split(",");
			for(var i:Number = 0; i<rows; i++){
				var temp = {};
				//trace(columnNames);
				for(var x:Number = 0;x<columnNames.length;x++){
					temp[columnNames[x]] = data[(i*columnNames.length)+x];
				}
				resultArray.push(temp);
			}
			return resultArray;
		}
		
		
	}
}